package com.wbl.train.common.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 王博纶
 * @since 2024-02-11
 * @description 每日座位
 */
@Data
@Accessors(chain = true)
@TableName("daily_train_seat")
@Schema(name = "DailyTrainSeat 对象", description = "每日座位 实体类")
public class DailyTrainSeatEntity {

    @Schema(description = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "车次编号")
    private String trainCode;

    @Schema(description = "箱序")
    private Integer carriageIndex;

    @Schema(description = "排号|01, 02")
    private String seatRow;

    @Schema(description = "列号|枚举[SeatColEnum]")
    private String seatCol;

    @Schema(description = "座位类型|枚举[SeatTypeEnum]")
    private String seatType;

    @Schema(description = "同车箱座序")
    private Integer carriageSeatIndex;

    @Schema(description = "售卖情况|将经过的车站用01拼接，0表示可卖，1表示已卖")
    private String sell;

    @Schema(description = "新增时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;


}
